﻿//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	XmlRule.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

namespace Smart.Common.Rules
{
	/// <summary>
	/// Xml rule
	/// </summary>
	public class XmlRule : IRule
	{
		/// <summary>
		/// Xml rule
		/// </summary>
		public XmlRule()
		{

		}

		/// <summary>
		/// Xml rule
		/// </summary>
		public XmlRule(IRuleCondition condition, IRuleAction action)
		{
			Condition = condition;
			Action = action;
		}

		/// <summary>
		/// Rule condition
		/// </summary>
		public IRuleCondition Condition { get; set; }

		/// <summary>
		/// Rule action
		/// </summary>
		public IRuleAction Action { get; set; }
	}
}